#include "Shooter.h"

Shooter::Shooter(UINT32 joystickChannel, UINT32 leftMotorChannel, UINT32 rightMotorChannel)
{
	xbox = new Joystick(joystickChannel);
	//solenoid = new DoubleSolenoid();
}

void Shooter::HandleInput()
{
	if(xbox->GetRawAxis(3) > .8)
	{
		solenoid->Set(true);
	}
	else
	{
		solenoid->Set(false);
	}
}

Shooter::~Shooter()
{
	delete solenoid;
}
